<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: your name
// +----------------------------------------------------------------------
namespace app\admin\model;

use plugin\saiadmin\basic\BaseModel;

/**
 * 订单评价模型
 */
class OrderRating extends BaseModel
{
    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 数据库表名称
     * @var string
     */
    protected $table = 'order_rating';

    /**
     * 关联模型 Order
     */
    public function order()
    {
        return $this->hasOne(Order::class, 'id', 'order_id');
    }
}
